up = 2
down = 1
sum = 0

for i in range(20): # 限制循环次数
    sum += up/down
    a = down
    down = up
    up = a + down

print(sum)
